<?php

namespace api\energy\factory\water;

use api\energy\common\Request;

/**
 * 水表实时抄表
 *
 * @method WaterMeterRealtimeRead setaddress(string $data) 电表地址
 * @method WaterMeterRealtimeRead settype(int $data) 抄表类型
 */
class WaterMeterRealtimeRead extends Request
{

    public function __construct(string $address = '', int $type = null)
    {
        $address && $this->setaddress($address);
        $type && $this->settype($type);
    }

    public function build()
    {
        $this->setUrl("/water/meter/realTimeRead");
        $this->setMethod('POST');

        $this->setRequestData($this->getRequestData());
    }

}